<?php

namespace common\models\credit_old_app_tables;

use Yii;

/**
 * This is the model class for table "{{%hi_finance}}".
 *
 * @property int $hi_id
 * @property string $hi_number
 * @property string $hi_status 推送状态
 * @property int $hi_time
 * @property string $hi_pic 附件
 */
class SlHiFinance extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return '{{%hi_finance}}';
    }

    /**
     * @return \yii\db\Connection the database connection used by this AR class.
     */
    public static function getDb()
    {
        return Yii::$app->get('db_old_app');
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['hi_number'], 'required'],
            [['hi_status'], 'string'],
            [['hi_time'], 'integer'],
            [['hi_number'], 'string', 'max' => 20],
            [['hi_pic'], 'string', 'max' => 255],
            [['hi_number'], 'unique'],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'hi_id' => Yii::t('app', 'Hi ID'),
            'hi_number' => Yii::t('app', 'Hi Number'),
            'hi_status' => Yii::t('app', '推送状态'),
            'hi_time' => Yii::t('app', 'Hi Time'),
            'hi_pic' => Yii::t('app', '附件'),
        ];
    }
}
